package com.sky.vo;

import com.sky.entity.OrderDetail;
import com.sky.entity.Orders;
import io.swagger.annotations.ApiModel;
import lombok.*;

import java.io.Serializable;
import java.util.List;

/**
 * 订单视图对象
 */
@EqualsAndHashCode(callSuper = true) //继承父类的equals和hashCode方法
@ToString(callSuper = true) //继承父类的toString方法
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "订单视图对象")
public class OrderVO extends Orders implements Serializable {

    //订单菜品信息
    private String orderDishes;

    //订单详情
    private List<OrderDetail> orderDetailList;

}
